/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package robot;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.io.IOException;
class NClass {
    public static void main(String[] args) throws AWTException, IOException {
        Runtime rs = Runtime.getRuntime();
        try {
            rs.exec("notepad");
        }
        catch (IOException e) {
            System.out.println(e);
        }
        Robot robot = new Robot ();
        robot.keyPress(KeyEvent.VK_C);
        robot.keyPress(KeyEvent.VK_I);
        robot.keyPress(KeyEvent.VK_A);
        robot.keyPress(KeyEvent.VK_O);
        robot.keyPress(KeyEvent.VK_SPACE);
        robot.keyPress(KeyEvent.VK_S);
        robot.keyPress(KeyEvent.VK_I);
        robot.keyPress(KeyEvent.VK_M);
        robot.keyPress(KeyEvent.VK_I);
        robot.keyPress(KeyEvent.VK_A);
        
        robot.delay(2000);
        robot.mouseMove(15, 750);
        robot.delay(5000);
        robot.mousePress(InputEvent.BUTTON1_MASK);
        robot.delay(200);
        robot.mouseRelease(InputEvent.BUTTON1_MASK);
        
    }
}

/**
 *
 * @author matteo.micheletti
 */
public class robot02 {
    
}
